package entity;

/**
 * /this class keep user login info 
 *
 */

public class UserLoginInfo {

	 static String userID;
	 static String userPass;
	 static String IP;
	 static int port;

	
/**
 * 	 class Constructor for User Login Info
 * @param ID
 * @param pass
 */
	
	public UserLoginInfo(){
		
		
	}
	
	
	public UserLoginInfo(String ID, String pass, String ip,int port1){
		userID=ID;
		UserLoginInfo.userPass=pass;
		UserLoginInfo.port=port1;
		IP=ip;
		//System.out.println("user loginInfo "+" port= "+port+" ip= "+IP+" id= "+userID);
	}
	
	//get and set =====================================
	
	public void setID(String id){
		
		userID=id;
	}

	public void setPort(int po){
		
		port=po;
	}
	
	public void setPassword(String pass){
		
		UserLoginInfo.userPass=pass;
	}

	public void setIP(String ip){
		
		IP=ip;;
	}	
	
	
	public String getID(){
		
		return UserLoginInfo.userID;
	}
	
	public String getPass(){
		
		return UserLoginInfo.userPass ;
	}
	
	
	public String getIP(){
		
		return UserLoginInfo.IP;
	}
	
	public int getPort(){
		
		return UserLoginInfo.port;
	}
	
	
	
}


